package com.example.lostfound.ui;

import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;

@SuppressWarnings("serial") 
public class FrontPage extends VerticalLayout {
	
	public FrontPage(){
		Panel frontPanel = new Panel(); 
		//frontPanel.setWidth("350px"); 
		frontPanel.setSizeFull(); 
		
		Label topMessage = new Label("<h1>Welcome to the Lost " +
							"but Found website.</h1>", 
				Label.CONTENT_XHTML);  
		Label message = new Label("<h2>Introduction</h2>" + 
				"<p>If you lost an item e.g. wallet, phones, purse, e.t.c. while travelling " +
				"in a bus or train, or may be just taking a walk in the city, then you are " +
				"in the right place. In less than a minute you can notify our office of your " +
				"missing item and we would contact you as soon as the item is found and brought " +
				"to one of our offices. </p>", 
				Label.CONTENT_XHTML); 
		
		frontPanel.addComponent(topMessage); 
		frontPanel.addComponent(message); 
		
		addComponent(frontPanel); 
	}
}
